package com.axxy.strategy;

/**
 * @author 一缕茜阳
 * @date 2021/7/12
 */
public class RedAndCanFlyBird extends Bird{

    public RedAndCanFlyBird() {

    }


    public void setFly(Fly fly){
        this.fly = fly;
    }
    public void setDisplay(Display display){
        this.display = display;
    }

    void perform(){
        fly.fly();
        display.show();
    }
}
